﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>排口二维码管理</title>
<script language="javascript" type="text/javascript" src="/bfs/common/scripts/dynamicImportJs.js"></script>
<script type="text/javascript">
	load([ "jquery-1.11.2", "treeList", "bootstrap", "easyUI-1.4.5", "highlight", "artTemplate-3.0.0", "knockout-3.3.0", "validate",
			"datepicker", "permission","qrcode"]);
</script>
<style>
.textbox{
	width:80px !important;
}
.nolist-content {
    padding: 220px !important;
}
</style>
</head>
<body>
	<script>
		importStyle("../../skin/" + skin + "/styles/page.css");
		importScript("scripts/equipQRCode.js");
	</script>
	<!--main-->
	<div class="n-main">
		<!--left-->
		<div class="leftTree">
			<div id="tree"></div>
		</div>
		<div id="open" class="btn-left"></div>
		<!--left end-->
		<div class="n-right">
		<div class="n-content n-boxsd" id="n-chart" style="height: 100%;">
		<div class="right-content" >
			<div class="con-box scrollbar" id="list">
				 <div class="t-name">
				  <ul data-bind="foreach:$root.enterEquipList">
					<div class="title-bar">
						<li data-bind="text:enterName"></li>
						<div class="wrwm" style="position: absolute;top: 6px;right:6px; margin-left: 40px;">
							<a class="btn-wrwm" style="height: 24px;" href="javascript:void(0)" name="status" data-bind="attr{id:enterID},click:function(){equipQRCode.loadMultQRCodes($data);}"></a>
						</div>
					</div>
					<div class="tab-content table-responsive clear">
					<div class="table-box">
						<div class="thead-box">
							<div class="t-thead table-responsive">
								<table class="table-bordered" id="equipTable" width="100%" border="0" cellspacing="0" cellpadding="0">
									<col style="width: 20%" />
									<col style="width: 20%" />
									<col style="width: 20%" />
									<col style="width: 20%" />
									<col style="width: 20%" />
									<thead>
										<tr>
											<th>排口名称</th>
											<th>排口编码</th>
											<th>排口类型</th>
											<th>操作</th>
										</tr>
									</thead>
								</table>
							</div>
						</div>
						<div class=" table-responsive t-tbody tablescrollbar">
							<table class="table-bordered" id="yourTableID2" width="100%" border="0" cellspacing="0" cellpadding="0">
								<col style="width: 20%" />
								<col style="width: 20%" />
								<col style="width: 20%" />
								<col style="width: 20%" />
								<col style="width: 20%" />
								<tbody data-bind="foreach:equipList">
									<tr >
										<td data-bind="text:pointName"></td>
										<td data-bind="text:pointCode"></td>
										<td data-bind="text:pointType"></td>
										<td>
											<!-- <a class="btn-eset" style="height: 24px;" href="javascript:void(0)" name="set" title="设置" data-bind="attr{id:eid},click:function(){equipQRCode.loadHtml(eid);}"></a> -->
											<a class="btn-rwm" style="height: 24px;" href="javascript:void(0)" name="qrCode" data-bind="attr{id:eid},click:function(){equipQRCode.loadQRCode($data);}"></a>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
				</ul>
				</div> 
			</div>
			<div class="nolist" style="display: none;">
				<div class="nolist-content">
					<div class="nolist-con"></div>
					<span>对不起，系统无相关记录...</span>
					</div>
			</div>
		</div>
		</div>
		</div>
		</div>
		<!--main end-->
		<div title="查看二维码" id="qrWindow" class="easyui-window" style="width: 420px;"minimizable="false" modal="true" collapsible="false"
			resizable="false" maximizable="false" closed="true">
			<div class="window-div">
			<div data-bind="foreach:$root.equipNode" style="margin:15px; width: 160px; margin: 0 auto;text-align: center;">
				<div>	
					<div id="showEidQR" > </div>
					<p><label data-bind="text:enterName"></label></br>[<label data-bind="text:pointCode"></label>]</p>
				</div>
					<div style="margin:10px;clear:both;width: 160px;margin-left: -40px;">
						<a class="n-cmbtn n-gr" style="height: 24px;width: 50px;" href="javascript:void(0)" name="status" title="导出"  data-bind="attr{id:eid},click:function(){equipQRCode.exportSingel();}">导出</a>
						<input id="close" class="n-cmbtn btn-border marlf20" value="关闭" type="button" onclick="equipQRCode.closeWindows()"/>
					</div>
				</div>
			</div>
		</div>
		<div title="查看二维码" id="equipQR" class="easyui-window" style="width:460px;height:480px;overflow-y:scroll" minimizable="false" modal="true" collapsible="false"
			resizable="false" maximizable="true" closed="true">
			<div class="window-div" style="text-align:center;">
			<!-- ko foreach:$root.equipList -->
			   <div style="text-align: center;margin: 15px;width:160px;float: left;">
					<div style="text-align: center;" data-bind="attr:{id:pointCode}"></div>
					<p><label data-bind="text:enterName"></label></br>[<label data-bind="text:pointCode"></label>]</br></p>
				</div>
			<!-- /ko -->
			    <div style="margin:10px;clear:both;">
				    <input id="saveAll" class="n-cmbtn n-gr" style="width: 50px;" onclick="equipQRCode.exportMulti();" value="导出"/> 
				    <input id="closeAll" class="n-cmbtn btn-border marlf20" value="关闭" type="button"/>
			    </div>
			</div>
		</div>
</body>
</html>

